﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using FluentValidation;
using CashFlow.Web.Models;

namespace CashFlow.Web.Validator
{
    public class UpdateAddressModelValidator 
        : AbstractValidator<UpdateAddressModel>
    {
        public UpdateAddressModelValidator()
        {
            RuleFor(x => x.Address).MaximumLength(50).WithMessage("收货地址长度不超过50！");
        }
    }
}